package com.tyfspring.beans.strategy;

import com.tyfspring.beans.config.BeanDefinition;
import com.tyfspring.beans.exception.BeansException;

import java.lang.reflect.Constructor;

/**
 * @Description bean的实例化策略
 * @Author shallow
 * @Date 2023/3/27 16:13
 */
public interface InstantiationStrategy {
//    Object instantiate(BeanDefinition beanDefinition) throws BeansException;

    Object instantiate(BeanDefinition beanDefinition, String beanName, Constructor constructor,Object[] args) throws BeansException;
}
